package uk.co.q3c.deplan.client;

import uk.co.q3c.deplan.client.ui.view.ScreenView;

import com.google.gwt.core.client.EntryPoint;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.DockLayoutPanel;
import com.google.gwt.user.client.ui.RootLayoutPanel;

/**
 * Entry point classes define <code>onModuleLoad()</code>.
 */
public class DePlanGWT implements EntryPoint {

	interface Binder extends UiBinder<DockLayoutPanel, DePlanGWT> {
	}

	private static final Binder binder = GWT.create(Binder.class);

	private ScreenView screenView;

	/**
	 * This is the entry point method.
	 */
	@Override
	public void onModuleLoad() {
		// Log.setCurrentLogLevel(Log.LOG_LEVEL_DEBUG);
		// screenView = new ScreenViewGWT();
		// Orchestrator.setScreenView(screenView);
		// Orchestrator.setViewCreator(new ViewCreatorGWT());
		// Orchestrator.setServiceFactory(new ClientServiceFactory());
		// screenView.setResourcesMICommand(new ResourcesCommand());
		DockLayoutPanel outer = binder.createAndBindUi(this);
		RootLayoutPanel root = RootLayoutPanel.get();
		root.add(outer);
	}

}